package com.xl.basic.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.xl.basic.utils.JacksonUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 全局的jackson配置
 */
@Configuration
public class JacksonConfig {
    @Bean
    public ObjectMapper objectMapper() {
        return JacksonUtils.objectMapper();
    }
}
